package cn.myzqu.sign.project.client;

import cn.myzqu.sign.common.response.ResultData;
import cn.myzqu.sign.project.common.input.ProjectStaffQueryInput;
import cn.myzqu.sign.project.common.input.ProjectQueryInput;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RequestMapping("/project")
public interface ProjectClient {

    @PostMapping("/info")
    ResultData addProject(@RequestBody ProjectQueryInput projectQueryInput) throws Exception;

    @GetMapping("/info/{id}")
    ResultData getProjectInfoById(@PathVariable Long id);

    @PostMapping("/listByStaff")
    ResultData getProjectList(@RequestBody Map params) throws Exception;

    @PostMapping("/myProject")
    ResultData getMyProject(@RequestBody ProjectStaffQueryInput projectStaffQueryInput) throws Exception;

    @PostMapping("/search")
    ResultData searchProject(@RequestBody ProjectQueryInput projectQueryInput);

}
